package j84;

import sun.misc.VM;
import java.nio.ByteBuffer;

/**
 * @author chengshuai
 * @date 2021/4/19 14:48
 *
 * -Xms5m -Xmx5m
 */
public class Client84 {
    public static void main(String[] args) {
        System.out.println("配置的最大直接内存：" + VM.maxDirectMemory() / 1024 / 1024 + "MB");
        ByteBuffer bb = ByteBuffer.allocateDirect(6 * 1024 * 1024);

    }
}
